import request from '@/utils/request'

// 查询project列表
export function listRehearsal(query) {
  return request({
    url: '/system/rehearsal/list',
    method: 'get',
    params: query
  })
}

// 查询project详细
export function getRehearsal(id) {
  return request({
    url: '/system/rehearsal/' + id,
    method: 'get'
  })
}

// 新增project
export function addRehearsal(data) {
  return request({
    url: '/system/rehearsal',
    method: 'post',
    data: data
  })
}

// 修改project
export function updateRehearsal(data) {
  return request({
    url: '/system/rehearsal',
    method: 'put',
    data: data
  })
}

// 删除project
export function delRehearsal(id) {
  return request({
    url: '/system/rehearsal/' + id,
    method: 'delete'
  })
}
